home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 41
/
Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso
/
Aminet
/
comm
/
mail
/
YAM22.lha
/
YAM2.2
/
Rexx
/
DeleteUnread.yam
< prev
next >
Wrap
Text File
|
2000-04-19
|
601b
|
19 lines
/* DeleteUnread.yam - Deletes all unread messages in the current folder */
/* $VER: DeleteUnread.yam 1.0 (12.03.00) © 2000 by M.Beck <mbeck@yam.ch> */
/* Requires YAM 2.0 or later */
OPTIONS RESULTS
ADDRESS YAM
FolderInfo STEM folder.
ListSelect NONE
found = 0
DO i = 0 TO folder.TOTAL-1
MailInfo i STEM mess.
IF (mess.STATUS = 'N') | (mess.STATUS = 'U') THEN DO
ListSelect i
found = 1
END
END
IF found THEN MailDelete ATONCE
EXIT